package com.tarena.lbs.pojo.basic.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class AdminBO implements Serializable,LoginBO {
    @Override
    public Integer getRoles() {
        return this.accountType;
    }
    //补充 业务不完整的字符串JWT
    private String jwt;
    private Integer id;

    private Integer accountType;

    private Integer businessId;

    private String accountPhone;

    private String accountPassword;

    private String nickname;

    private String email;

    private Integer accountStatus;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;


}